import { createApp } from 'vue'
import App from './App.vue'

// 导入统一全局的样式文件
import 'normalize.css'
// 手动的设置当前的样式
import '@/assets/styles/common.less'
// 导入路由对象
import router from '@/router'
// 配置pinia
import {createPinia} from 'pinia'

import SealUI from '@/components'

const pinia = createPinia()

// 全局注册组件
// vue2:Vue.component(组件名,组件配置对象)
// vue3:app.component(组件名,组件配置对象)
// import SealSkeleton from '@/components/skeleton/index.vue'
// import SealUI from '@/components'
const app = createApp(App)

// 注册全局组件
app.use(SealUI)

app.use(router)
app.use(pinia)
app.mount('#app')
